﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Default.Master" AutoEventWireup="true" CodeBehind="mgrSLA.aspx.cs" Inherits="WebUI.Pages.mgtSLA" %>
<asp:Content ID="Content1" ContentPlaceHolderID="cphHead" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="cphTop" runat="server">
    <asp:Label ID="lblMsg2" runat="server"></asp:Label>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cphContent" runat="server">
    <div id="content">
    <div id="frm">
        <table>
            <tr>
               <td><h2>Gerenciar SLAs</h2></td>
               <td></td>
               <td></td>
            </tr>
            <tr>
               <td></td>
               <td></td>
               <td></td>
            </tr>
            <tr>
               <td>SLA:</td>
               <td><asp:TextBox ID="txtSLA" runat="server" Width="129px"></asp:TextBox></td>
               <td>&nbsp;</td>
            </tr>
            <tr>
               <td>Prioridade</td>
               <td><asp:TextBox ID="txtPrioridade" runat="server"></asp:TextBox></td>
               <td>&nbsp;</td>
            </tr>
            <tr>
               <td>Tempo de Resposta (d)</td>
               <td><asp:TextBox ID="txtTempoResposta" runat="server"></asp:TextBox></td>
               <td>&nbsp;</td>
            </tr>
            <tr>
               <td>Tempo para Solução (d)</td>
               <td><asp:TextBox ID="txtTempoSolucao" runat="server"></asp:TextBox></td>
               <td>&nbsp;</td>
            </tr>
            <tr>
               <td></td>
               <td></td>
               <td><asp:Button ID="cmdSalvar" runat="server" Text="Novo" onclick="cmdSalvar_Click" /></td>
            </tr>
        </table>
        <br />
    </div>
    <div id="results">
    <asp:Repeater ID="rpSLA" runat="server" onitemcommand="rpSLA_ItemCommand">
    
        <HeaderTemplate>
            <table id="tablegrid" width="400px">
                <thead>
                    <th scope="col">SLA</th>
                    <th scope="col">Prioridade</th>
                    <th scope="col">Tempo de Resposta(d)</th>
                    <th scope="col">Tempo Resolução(d)</th>
                    <th scope="col"></th>
                </thead>
                <tbody>
        </HeaderTemplate>
        
        <ItemTemplate>
            <tr>
                <td> <%# Eval("SLA") %> </td>
                <td> <%# Eval("Prioridade") %></td>
                <td> <%# Eval("TempoResposta") %> </td>
                <td> <%# Eval("TempoSolucao") %> </td>
                <td><asp:Button runat="server" ID="cmdEdit" CommandName="cmdEdit" CommandArgument= <%# Eval("idSLA") %> Text="Editar"/></td>
            </tr>
        </ItemTemplate>
            
        <FooterTemplate>
                </tbody>
            </table>
        </FooterTemplate>
    
        </asp:Repeater>
        </div>
</div>
</asp:Content>
